package com.demo.model;

import lombok.Builder;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @Author: LiuYuanQi
 * @Date: 2020/4/15 10:29
 */

@Builder
@Data
@Table(name = "user_item")
public class UserItem implements Serializable {

    private static final long serialVersionUID = -4908712899021069617L;

    @Id
    @Column(name="user_id")
    private Integer userId;//   用户id

    @Id
    @Column(name="item_id")
    private Integer itemId;//   物品id

    @Column(name="like_of")
    private Integer likeOf;//   用户偏好物品id

}